package com.xmx.ordercenter.feign;

import com.xmx.common.utils.R;

import com.xmx.ordercenter.dto.AddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value="user-center")
public interface UserFeignClient {
    /**
     * 地址服务
     */

    @GetMapping("/usercenter/address/findByAuid")
    R findlistByuid(@RequestParam("userId") Integer userId, @RequestParam("addressId") Integer addressId);

    @GetMapping("/usercenter/address/findlistByDefault")
    R findlistByDefault(Integer userId);


    @GetMapping("/usercenter/address/findListByUid")
    R findListByUid(@RequestParam("userId") Integer userId);


    @GetMapping("/usercenter/address/info/{id}")
    R infoaddress(@PathVariable("id") Integer id);
}
